/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package gameheart.client.sprite;

import java.awt.image.BufferedImage;

/**
 *
 * @author win7
 */
public class ImageSprite extends Sprite {
    public ImageSprite(int x, int y, int w, int h, ImageResposity imageResposity, String imageFileName)
    {
        BufferedImage image = imageResposity.getImage(imageFileName);
        Init(x, y, w, h, image);
    }
        public ImageSprite(int x, int y,ImageResposity imageResposity, String imageFileName)
    {
        BufferedImage image = imageResposity.getImage(imageFileName);
        Init(x, y, image);
    }
}
